import request from '@/utils/request'

// 查询手术登记列表 (分页)
export function selectPageSurgeryApply(query) {
  return request({
    url: '/business/surgeryApply/selectPage',
    method: 'get',
    params: query
  })
}

// 查询手术登记列表 (不分页)
export function listSurgeryApply(query) {
  return request({
    url: '/business/surgeryApply/list',
    method: 'get',
    params: query
  })
}

// 查询手术登记详细
export function getSurgeryApply(surgeryId) {
  return request({
    url: '/business/surgeryApply/' + surgeryId,
    method: 'get'
  })
}

// 新增手术登记
export function addSurgeryApply(data) {
  return request({
    url: '/business/surgeryApply',
    method: 'post',
    data: data
  })
}

// 修改手术登记
export function updateSurgeryApply(data) {
  return request({
    url: '/business/surgeryApply',
    method: 'put',
    data: data
  })
}

// 删除手术登记
export function delSurgeryApply(surgeryId) {
  return request({
    url: '/business/surgeryApply/' + surgeryId,
    method: 'delete'
  })
}
